This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: DialogBox cannot be used from inside DialogBox ~Wendy Reresaly 3.Dec.03 01:25 PM a Web browser Domino Designer 6.0.2Windows 2000
If I understand you problem correctly, you have an event in your form that cancels opening and re-open it with the same form within a dialog box. Right?
If so, then your code would start an infinite loop since QueryOpen is also started when opening dialog box itself :
Open Form (STOP) -> Open Dialog Box (STOP) -> Open Dialog Box (STOP) -> ....
To avoid this, I would add a flag to document within your code :
QueryOpen event:
Dim workspace As New NotesUIWorkspace
Dim contactDoc As NotesDocument
Set contactDoc = Source.Document
If ContactDoc.IsDialog(0) = "1" Then
'OK to open it so in DIalog box and remove flag
Call ContactDoc.RemoveItem("IsDialog")
Continue = True
Else
'Is not in dialog box yet, so cancel opening and open it into dialog box
ContactDoc.IsDialog = "1"
Call workspace.DialogBox ( contactDoc.form(0), True, False, False, False, False, False, "Contact", contactDoc, True, False, True )
Continue = False
End If
End Sub